package com.stu.boke.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.stu.boke.entity.ArticleCategoryRef;
import com.stu.boke.entity.Category;

@Mapper
public interface ArticleCategoryRefMapper {

	List<Category> listCategoryByArticleId(Integer articleId);
	
	Integer countArticleByTagId(Integer id);
	
	void deleteByArticleId(Integer id);
	
	void deleteByTagId(Integer id);
	
	void insert(Integer id);

	void insert(ArticleCategoryRef articleCategoryRef);

	Integer countArticleByCategoryId(Integer categoryId);

	List<Integer> selectCategoryIdByArticleId(Integer articleId);

}
